package com.cn.kehong.domain;

import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.Map;

public class ExceptionManagement {
    private String id;

    private String factoryName;

    private String sectionProcess;

    private String disposalStatus;

    private String reportTime;

    private String reportName;

    private String sectionRemark;

    private String abnormalLevel;

    private String status;

    private String abnormalType;

    private Integer abnormalWight;

    private String productCode;

    private String abnormalNumber;

    private String problemDescription;

    private String reviewMembers;

    private String reviewTime;

    private String reviewResult;

    private String handlingMethod;

    private String release;

    private String rework;

    private String scrap;

    private String number;

    private String createBy;

    private String submitter;
    private Date createTime;

    private Date updateTime;

    private String ycStatus;
    private int count;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }
    public static final transient Map<String, String> RESULTSTATUSMAP =
            ImmutableMap.of("0", "待上报", "1", "待评审","2","已处置","3","已取消");

    public String getYcStatusCn() {
        return RESULTSTATUSMAP.get(getYcStatus());
    }
    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName == null ? null : factoryName.trim();
    }

    public String getSectionProcess() {
        return sectionProcess;
    }

    public void setSectionProcess(String sectionProcess) {
        this.sectionProcess = sectionProcess == null ? null : sectionProcess.trim();
    }

    public String getDisposalStatus() {
        return disposalStatus;
    }

    public void setDisposalStatus(String disposalStatus) {
        this.disposalStatus = disposalStatus == null ? null : disposalStatus.trim();
    }

    public String getSubmitter() {
        return submitter;
    }

    public void setSubmitter(String submitter) {
        this.submitter = submitter;
    }

    public String getReportTime() {
        return reportTime;
    }

    public void setReportTime(String reportTime) {
        this.reportTime = reportTime == null ? null : reportTime.trim();
    }

    public String getReportName() {
        return reportName;
    }

    public void setReportName(String reportName) {
        this.reportName = reportName == null ? null : reportName.trim();
    }

    public String getSectionRemark() {
        return sectionRemark;
    }

    public void setSectionRemark(String sectionRemark) {
        this.sectionRemark = sectionRemark == null ? null : sectionRemark.trim();
    }

    public String getAbnormalLevel() {
        return abnormalLevel;
    }

    public void setAbnormalLevel(String abnormalLevel) {
        this.abnormalLevel = abnormalLevel == null ? null : abnormalLevel.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getAbnormalType() {
        return abnormalType;
    }

    public void setAbnormalType(String abnormalType) {
        this.abnormalType = abnormalType == null ? null : abnormalType.trim();
    }

    public Integer getAbnormalWight() {
        return abnormalWight;
    }

    public void setAbnormalWight(Integer abnormalWight) {
        this.abnormalWight = abnormalWight;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode == null ? null : productCode.trim();
    }

    public String getAbnormalNumber() {
        return abnormalNumber;
    }

    public void setAbnormalNumber(String abnormalNumber) {
        this.abnormalNumber = abnormalNumber == null ? null : abnormalNumber.trim();
    }

    public String getProblemDescription() {
        return problemDescription;
    }

    public void setProblemDescription(String problemDescription) {
        this.problemDescription = problemDescription == null ? null : problemDescription.trim();
    }

    public String getReviewMembers() {
        return reviewMembers;
    }

    public void setReviewMembers(String reviewMembers) {
        this.reviewMembers = reviewMembers == null ? null : reviewMembers.trim();
    }

    public String getReviewTime() {
        return reviewTime;
    }

    public void setReviewTime(String reviewTime) {
        this.reviewTime = reviewTime == null ? null : reviewTime.trim();
    }

    public String getReviewResult() {
        return reviewResult;
    }

    public void setReviewResult(String reviewResult) {
        this.reviewResult = reviewResult == null ? null : reviewResult.trim();
    }

    public String getHandlingMethod() {
        return handlingMethod;
    }

    public void setHandlingMethod(String handlingMethod) {
        this.handlingMethod = handlingMethod == null ? null : handlingMethod.trim();
    }

    public String getRelease() {
        return release;
    }

    public void setRelease(String release) {
        this.release = release == null ? null : release.trim();
    }

    public String getRework() {
        return rework;
    }

    public void setRework(String rework) {
        this.rework = rework == null ? null : rework.trim();
    }

    public String getScrap() {
        return scrap;
    }

    public void setScrap(String scrap) {
        this.scrap = scrap == null ? null : scrap.trim();
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number == null ? null : number.trim();
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getYcStatus() {
        return ycStatus;
    }

    public void setYcStatus(String ycStatus) {
        this.ycStatus = ycStatus == null ? null : ycStatus.trim();
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}